package com.xinnet.mms.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 树模型，用来转换成前台树组件需要的数据结构
 * @author Jerry
 * @param <T>
 *
 */
@SuppressWarnings("serial")
public class ZtreeModel implements Serializable {


	private String id;
	private String pId;
	private String name;
	private String code;
	private boolean nocheck;
	private String type; 
	private boolean open;
	private List<ZtreeModel> children;
	
	

	/**
	 * 构造器
	 */
	public ZtreeModel() {
      
				
	}


	public ZtreeModel(String id, String pId, String name, String code,
			boolean nocheck, String type, boolean open,
			List<ZtreeModel> children) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.code = code;
		this.nocheck = nocheck;
		this.type = type;
		this.open = open;
		this.children = children;
	}




	

	/**
	 * 属性存取器
	 * 
	 */

	public String getId() {
		return id;
	}



	public void setId(String id) {
		this.id = id;
	}



	public String getpId() {
		return pId;
	}



	public void setpId(String pId) {
		this.pId = pId;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}



	public boolean isNocheck() {
		return nocheck;
	}




	public void setNocheck(boolean nocheck) {
		this.nocheck = nocheck;
	}




	public String getType() {
		return type;
	}



	public void setType(String type) {
		this.type = type;
	}



	public boolean isOpen() {
		return open;
	}



	public void setOpen(boolean open) {
		this.open = open;
	}



	public List<ZtreeModel> getChildren() {
		return children;
	}



	public void setChildren(List<ZtreeModel> children) {
		this.children = children;
	}
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}




}
